/*
 * XML Type:  WireTransactionRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.WireTransactionRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML WireTransactionRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class WireTransactionRequestImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionRequestImpl implements net.ofx.types.x2003.x04.WireTransactionRequest
{
    
    public WireTransactionRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName WIRERQ$0 = 
        new javax.xml.namespace.QName("", "WIRERQ");
    private static final javax.xml.namespace.QName WIRECANRQ$2 = 
        new javax.xml.namespace.QName("", "WIRECANRQ");
    
    
    /**
     * Gets the "WIRERQ" element
     */
    public net.ofx.types.x2003.x04.WireRequest getWIRERQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireRequest target = null;
            target = (net.ofx.types.x2003.x04.WireRequest)get_store().find_element_user(WIRERQ$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "WIRERQ" element
     */
    public boolean isSetWIRERQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WIRERQ$0) != 0;
        }
    }
    
    /**
     * Sets the "WIRERQ" element
     */
    public void setWIRERQ(net.ofx.types.x2003.x04.WireRequest wirerq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireRequest target = null;
            target = (net.ofx.types.x2003.x04.WireRequest)get_store().find_element_user(WIRERQ$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.WireRequest)get_store().add_element_user(WIRERQ$0);
            }
            target.set(wirerq);
        }
    }
    
    /**
     * Appends and returns a new empty "WIRERQ" element
     */
    public net.ofx.types.x2003.x04.WireRequest addNewWIRERQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireRequest target = null;
            target = (net.ofx.types.x2003.x04.WireRequest)get_store().add_element_user(WIRERQ$0);
            return target;
        }
    }
    
    /**
     * Unsets the "WIRERQ" element
     */
    public void unsetWIRERQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WIRERQ$0, 0);
        }
    }
    
    /**
     * Gets the "WIRECANRQ" element
     */
    public net.ofx.types.x2003.x04.WireCancellationRequest getWIRECANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.WireCancellationRequest)get_store().find_element_user(WIRECANRQ$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "WIRECANRQ" element
     */
    public boolean isSetWIRECANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WIRECANRQ$2) != 0;
        }
    }
    
    /**
     * Sets the "WIRECANRQ" element
     */
    public void setWIRECANRQ(net.ofx.types.x2003.x04.WireCancellationRequest wirecanrq)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.WireCancellationRequest)get_store().find_element_user(WIRECANRQ$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.WireCancellationRequest)get_store().add_element_user(WIRECANRQ$2);
            }
            target.set(wirecanrq);
        }
    }
    
    /**
     * Appends and returns a new empty "WIRECANRQ" element
     */
    public net.ofx.types.x2003.x04.WireCancellationRequest addNewWIRECANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.WireCancellationRequest target = null;
            target = (net.ofx.types.x2003.x04.WireCancellationRequest)get_store().add_element_user(WIRECANRQ$2);
            return target;
        }
    }
    
    /**
     * Unsets the "WIRECANRQ" element
     */
    public void unsetWIRECANRQ()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WIRECANRQ$2, 0);
        }
    }
}
